///////////////////////////////////////////////////////////////////////////////
//2013/11/20
//周俊
//基础图层头文件
///////////////////////////////////////////////////////////////////////////////
#ifndef __BASE_LAYER_H__
#define __BASE_LAYER_H__

#include "cocos2d.h"
#include "../base/Helper.h"
#include "../base/SignalSlot.h"

TSP_NS_START

class BaseLayer : public cocos2d::Layer, public SignalSet
{
public:
    enum
    {
        kEventUnknown = 0,
        kBeforeEnter,
        kAfterEnter,
        kBeforeExit,
        kAfterExit,
        kEventMax
    };

    virtual bool init();
    virtual ~BaseLayer();
    BaseLayer* create();

    virtual void onEnter();
    virtual void onExit();

protected:
    BaseLayer();

private:
    TSP_DISALLOW_COPY_AND_ASSIGN(BaseLayer);
};

TSP_NS_END

#endif // __BASE_LAYER_H__
